package xxdsqljob

class JobHis {

    String id
    long jobId
    String jobName //job名称
    Date initTime //时间字符串
    Date startTime //最近一次执行完成时间
    Date lastTime //最近一次执行完成时间
    long period //时间间隔
    String unit //单位
    String active = "N" //状态：未激活、激活:N:Y
    String state = "NORMAL" // 运行状态:运行中RUN、正常NORMAL、异常ERROR
    String stateInfo //执行信息
    String uploadPath //上传路径

    String creator ;//操作人
    String updater;//最近一次更新人
    Date logDated;
    Date lastUpdated;
    static constraints = {
        jobName(nullable: true )
        initTime(nullable: true)
        period(nullable: true )
        unit(nullable: true )
        active(nullable: true )
        state(nullable: true )
        stateInfo(nullable: true ,size: 0..1000 )
        uploadPath(nullable: true )
        lastTime(nullable: true )
        startTime(nullable: true)
        creator(nullable: true )
        updater(nullable: true )
        lastUpdated(nullable: true )
        logDated(nullable: true )
    }
    static mapping = {
        id generator:'assigned', type:'string'
        version false
    }

}
